import React from 'react';
import {Link } from "react-router-dom";

import {observer,inject } from "mobx-react";

@inject("homeStore")
@observer
class chat extends React.Component{

    constructor(props){
        super(props);
        this.state={}
    }

    render() {
        return (
            <div>
                home
                <div>
                    数组：{this.props.homeStore.homeNum}
                </div>
                <button onClick={() => {this.props.homeStore.addNum()}} >
                         点击添加
                      </button>
                  <button  onClick={() => {this.props.homeStore.lessNum()}}>
                   点击删除
                    </button>
                <Link to="/center">Netflix</Link>
            </div>
        )
    }

}
export default chat;
